// 基于template/src/widgets/{{appEntities}}/{{ctrls@FORM}}-form/{{spinalCase ctrl.codeName}}-form-model.ts.hbs生成
import { IEditFormModel, IFormStore, IParam } from '@/core';
function getModel(): IEditFormModel {
    return {
        name: "form",
        caption: "",
        codeName: "Usr0222816489",
        enableAutoSave: false,
        entityCodeName: "AvueTest",
        keyPSAppDEField: "AvueTestId",
        majorPSAppDEField: "AvueTestName",
        cssName: "",
        controlType: "FORM",
        formStyle: "",
        valueRule: getValueRule(),
        createDefaultItems: getCreateDefaultItems(),
        updateDefaultItems: getUpdateDefaultItems(),
        detailModel: getDetailModel(),
        ctrlMsgModel:[
    ],
        uiEngineModel: [
            {
                name: 'engine_form',
                triggerType: 'CTRLEVENT',
                logicType: 'APPVIEWENGINE',
                eventNames: 'LOAD;SAVE;REMOVE',
                scriptCode: ``,
                entityCodeName: '',
                logicName:``
            }
    ]
    }
}
function getValueRule() {
    return [
    ]
}

function getCreateDefaultItems() {
    return [
    ]
}

function getUpdateDefaultItems() {
    return [
    ]
}
function getDetailModel() {
    return {
        formpage1: {
            caption: "基本信息",
            captionItemName: "",
            name: "formpage1",
            codeName: "formpage1",
            disabled: false, 
            visible: true,
            detailStyle: "DEFAULT",
            detailType: "FORMPAGE",
            showCaption: false,
            enableAnchor: false,
            showMoreMode: 0,
        },
        grouppanel6: {
            caption: "主信息",
            captionItemName: "",
            name: "grouppanel6",
            codeName: "grouppanel6",
            disabled: false, 
            visible: true,
            detailStyle: "DEFAULT",
            detailType: "GROUPPANEL",
            showCaption: true,
            enableAnchor: false,
            showMoreMode: 0,
            showMoreItems: [
            ],
        },
        avuetestname: {
            caption: "avue测试名称",
            captionItemName: "",
            name: "avuetestname",
            codeName: "avuetestname",
            disabled: false, 
            visible: true,
            detailStyle: "DEFAULT",
            detailType: "FORMITEM",
            showCaption: true,
            enableAnchor: false,
            showMoreMode: 0,
            valueFormat: "",
            fieldCodeName: "AvueTestName",
            dataType: "25",
            required: false,
            enableCond: 3,
            ignoreInput: 0,
            convertToCodeItemText: false,
            layout:{parentLayout: 'TABLE_24COL',colMD: 24,},
        },
        grouppanel1: {
            caption: "子表单（引用表单）",
            captionItemName: "",
            name: "grouppanel1",
            codeName: "grouppanel1",
            disabled: false, 
            visible: true,
            detailStyle: "DEFAULT",
            detailType: "GROUPPANEL",
            showCaption: true,
            enableAnchor: false,
            showMoreMode: 0,
            showMoreItems: [
            ],
        },
        avuechildones: {
            caption: "",
            captionItemName: "",
            name: "avuechildones",
            codeName: "avuechildones",
            disabled: false, 
            visible: true,
            detailStyle: "DEFAULT",
            detailType: "MDCTRL",
            showCaption: true,
            enableAnchor: false,
            showMoreMode: 0,
        },
        grouppanel2: {
            caption: "子表单（引用表格）",
            captionItemName: "",
            name: "grouppanel2",
            codeName: "grouppanel2",
            disabled: false, 
            visible: true,
            detailStyle: "DEFAULT",
            detailType: "GROUPPANEL",
            showCaption: true,
            enableAnchor: false,
            showMoreMode: 0,
            showMoreItems: [
            ],
        },
        mdctrl2: {
            caption: "",
            captionItemName: "",
            name: "mdctrl2",
            codeName: "mdctrl2",
            disabled: false, 
            visible: true,
            detailStyle: "DEFAULT",
            detailType: "MDCTRL",
            showCaption: true,
            enableAnchor: false,
            showMoreMode: 0,
        },
        grouppanel3: {
            caption: "子表单（重复器表单）",
            captionItemName: "",
            name: "grouppanel3",
            codeName: "grouppanel3",
            disabled: false, 
            visible: true,
            detailStyle: "DEFAULT",
            detailType: "GROUPPANEL",
            showCaption: true,
            enableAnchor: false,
            showMoreMode: 0,
            showMoreItems: [
            ],
        },
        avuechildthrees: {
            caption: "",
            captionItemName: "",
            name: "avuechildthrees",
            codeName: "avuechildthrees",
            disabled: false, 
            visible: true,
            detailStyle: "DEFAULT",
            detailType: "MDCTRL",
            createDefaultItems: [
                {
                    createDV: "测试新建默认值",
                    createDVT: "",
                    property: "avuechildthreenamefilename",
                    dataType: 25,
                },
            ],
            updateDefaultItems: [
                {
                    updateDV: "测试更新默认值",
                    updateDVT: "",
                    property: "avuechildthreenamefilename",
        dataType: 25,
                },
            ],
            showCaption: true,
            enableAnchor: false,
            showMoreMode: 0,
        },
        avuechildthreenamefilename: {
            caption: "实体3名称",
            captionItemName: "",
            name: "avuechildthreenamefilename",
            codeName: "avuechildthreenamefilename",
            disabled: false, 
            visible: true,
            detailStyle: "DEFAULT",
            detailType: "FORMITEM",
            parentIsRepeater: true,
            parentCodeName: 'avuechildthrees',
            valueItem: 'avuechildthreename',
            showCaption: true,
            enableAnchor: false,
            showMoreMode: 0,
            dataType: "25",
            required: true,
            enableCond: 3,
            ignoreInput: 0,
            convertToCodeItemText: false,
            layout:{parentLayout: 'TABLE_24COL',colLG: 12,colMD: 12,colSM: 12,colXS: 12,},
        },
        fieldtestid: {
            caption: "测试属性",
            captionItemName: "",
            name: "fieldtestid",
            codeName: "fieldtestid",
            disabled: false, 
            visible: true,
            detailStyle: "DEFAULT",
            detailType: "FORMITEM",
            parentIsRepeater: true,
            parentCodeName: 'avuechildthrees',
            valueItem: 'fieldtest',
            showCaption: true,
            enableAnchor: false,
            showMoreMode: 0,
            dataType: "25",
            required: true,
            enableCond: 3,
            ignoreInput: 0,
            convertToCodeItemText: false,
            codeListTag: "Sample__CheckBoxTest",
            layout:{parentLayout: 'TABLE_24COL',colLG: 12,colMD: 12,colSM: 12,colXS: 12,},
            groupLogics: [
                {
                	name: '表单成员[fieldtestid][面板显示]逻辑',
                	logicType: 'GROUP',
                	logicCat: 'PANELVISIBLE',
                	notMode: false,
                	groupOP: 'AND',
                	relatedDetailNames: ["avuechildthreenamefilename"],
                	childLogics: [
                		{
                			name: '',
                			logicType: 'SINGLE',
                			logicCat: '',
                			condOP: "EQ",
                			dEFDName: "avuechildthreenamefilename",
                			value: "1"
                		},
                	]
                },
                {
                	name: '表单成员[fieldtestid][表单项空输入]逻辑',
                	logicType: 'GROUP',
                	logicCat: 'ITEMBLANK',
                	notMode: false,
                	groupOP: 'AND',
                	relatedDetailNames: ["avuetestname"],
                	childLogics: [
                		{
                			name: '',
                			logicType: 'SINGLE',
                			logicCat: '',
                			condOP: "EQ",
                			dEFDName: "avuetestname",
                			value: "3"
                		},
                	]
                },
                {
                	name: '表单成员[fieldtestid][表单项启用]逻辑',
                	logicType: 'GROUP',
                	logicCat: 'ITEMENABLE',
                	notMode: false,
                	groupOP: 'AND',
                	relatedDetailNames: ["avuetestname"],
                	childLogics: [
                		{
                			name: '',
                			logicType: 'SINGLE',
                			logicCat: '',
                			condOP: "EQ",
                			dEFDName: "avuetestname",
                			value: "2"
                		},
                	]
                },
            ],
        },
        avuethreechildones: {
            caption: "",
            captionItemName: "",
            name: "avuethreechildones",
            codeName: "avuethreechildones",
            disabled: false, 
            visible: true,
            detailStyle: "DEFAULT",
            detailType: "MDCTRL",
            parentIsRepeater: true,
            parentCodeName: 'avuechildthrees',
            createDefaultItems: [
            ],
            updateDefaultItems: [
            ],
            showCaption: true,
            enableAnchor: false,
            showMoreMode: 0,
        },
        avuethreechildonename: {
            caption: "实体3子实体名称",
            captionItemName: "",
            name: "avuethreechildonename",
            codeName: "avuethreechildonename",
            disabled: false, 
            visible: true,
            detailStyle: "DEFAULT",
            detailType: "FORMITEM",
            parentIsRepeater: true,
            parentCodeName: 'avuethreechildones',
            showCaption: true,
            enableAnchor: false,
            showMoreMode: 0,
            dataType: "25",
            required: false,
            enableCond: 3,
            ignoreInput: 0,
            convertToCodeItemText: false,
            layout:{parentLayout: 'TABLE_24COL',colMD: 24,},
        },
        grouppanel4: {
            caption: "子表单（重复器表格）",
            captionItemName: "",
            name: "grouppanel4",
            codeName: "grouppanel4",
            disabled: false, 
            visible: true,
            detailStyle: "DEFAULT",
            detailType: "GROUPPANEL",
            showCaption: true,
            enableAnchor: false,
            showMoreMode: 0,
            showMoreItems: [
            ],
        },
        avuechildfours: {
            caption: "",
            captionItemName: "",
            name: "avuechildfours",
            codeName: "avuechildfours",
            disabled: false, 
            visible: true,
            detailStyle: "STYLE2",
            detailType: "MDCTRL",
            createDefaultItems: [
                {
                    createDV: "测试新建默认值",
                    createDVT: "",
                    property: "avuechildfourname",
                    dataType: 25,
                },
            ],
            updateDefaultItems: [
                {
                    updateDV: "测试更新默认值",
                    updateDVT: "",
                    property: "avuechildfourname",
                    valueFormat: "",
                    dataType: 25,
                },
            ],
            showCaption: true,
            enableAnchor: false,
            showMoreMode: 0,
            valueFormat: "",
        },
        avuechildfourname: {
            caption: "four名称",
            captionItemName: "",
            name: "avuechildfourname",
            codeName: "avuechildfourname",
            disabled: false, 
            visible: true,
            detailStyle: "DEFAULT",
            detailType: "FORMITEM",
            parentIsRepeater: true,
            parentCodeName: 'avuechildfours',
            showCaption: true,
            enableAnchor: false,
            showMoreMode: 0,
            fieldCodeName: "AvueChildFours",
            dataType: "25",
            required: true,
            enableCond: 3,
            ignoreInput: 0,
            convertToCodeItemText: false,
            layout:{parentLayout: 'TABLE_24COL',colMD: 24,},
        },
        fieldtest1: {
            caption: "测试属性",
            captionItemName: "",
            name: "fieldtest1",
            codeName: "fieldtest1",
            disabled: false, 
            visible: true,
            detailStyle: "DEFAULT",
            detailType: "FORMITEM",
            parentIsRepeater: true,
            parentCodeName: 'avuechildfours',
            showCaption: true,
            enableAnchor: false,
            showMoreMode: 0,
            fieldCodeName: "AvueChildFours",
            dataType: "25",
            required: false,
            enableCond: 3,
            ignoreInput: 0,
            convertToCodeItemText: false,
            codeListTag: "Sample__CheckBoxTest",
            layout:{parentLayout: 'TABLE_24COL',colMD: 24,},
        },
        grouppanel5: {
            caption: "子表单（重复器1：1表单）",
            captionItemName: "",
            name: "grouppanel5",
            codeName: "grouppanel5",
            disabled: false, 
            visible: true,
            detailStyle: "DEFAULT",
            detailType: "GROUPPANEL",
            showCaption: true,
            enableAnchor: false,
            showMoreMode: 0,
            showMoreItems: [
            ],
        },
        avuechildfives: {
            caption: "",
            captionItemName: "",
            name: "avuechildfives",
            codeName: "avuechildfives",
            disabled: false, 
            visible: true,
            detailStyle: "STYLE3",
            detailType: "MDCTRL",
            createDefaultItems: [
                {
                    createDV: "测试新建默认值",
                    createDVT: "",
                    property: "avuechildfivename",
                    dataType: 25,
                },
            ],
            updateDefaultItems: [
                {
                    updateDV: "测试更新默认值",
                    updateDVT: "",
                    property: "avuechildfivename",
        dataType: 25,
                },
            ],
            showCaption: true,
            enableAnchor: false,
            showMoreMode: 0,
        },
        avuechildfivename: {
            caption: "five名称",
            captionItemName: "",
            name: "avuechildfivename",
            codeName: "avuechildfivename",
            disabled: false, 
            visible: true,
            detailStyle: "DEFAULT",
            detailType: "FORMITEM",
            parentIsRepeater: true,
            parentCodeName: 'avuechildfives',
            showCaption: true,
            enableAnchor: false,
            showMoreMode: 0,
            dataType: "25",
            required: false,
            enableCond: 3,
            ignoreInput: 0,
            convertToCodeItemText: false,
            layout:{parentLayout: 'TABLE_24COL',colLG: 12,colMD: 12,colSM: 12,colXS: 12,},
        },
        fieldtest2: {
            caption: "测试属性",
            captionItemName: "",
            name: "fieldtest2",
            codeName: "fieldtest2",
            disabled: false, 
            visible: true,
            detailStyle: "DEFAULT",
            detailType: "FORMITEM",
            parentIsRepeater: true,
            parentCodeName: 'avuechildfives',
            showCaption: true,
            enableAnchor: false,
            showMoreMode: 0,
            dataType: "25",
            required: false,
            enableCond: 3,
            ignoreInput: 0,
            convertToCodeItemText: false,
            codeListTag: "Sample__CheckBoxTest",
            layout:{parentLayout: 'TABLE_24COL',colLG: 12,colMD: 12,colSM: 12,colXS: 12,},
        },
    }
}
export const model = getModel();
